// BelievableAgentArchitecture.cpp : main project file.

#include "stdafx.h"
#include <iostream>
#include "GameScreen.h"
#include "BackEndController.h"

#using <mscorlib.dll>

[System::STAThreadAttribute]
int main(array<System::String ^> ^args)
{
	// Enabling Windows XP visual effects before any controls are created
	System::Windows::Forms::Application::EnableVisualStyles();
	System::Windows::Forms::Application::SetCompatibleTextRenderingDefault(false); 

	BAA::BackEndController ^ pMyThread = gcnew BAA::BackEndController();
	System::Threading::ThreadStart ^ pThread = gcnew System::Threading::ThreadStart(pMyThread, &BAA::BackEndController::MyThreadProc);
    System::Threading::Thread ^ oThread = gcnew System::Threading::Thread(pThread);
    oThread->Start();

	// Create the main window and run it
	System::Windows::Forms::Application::Run(gcnew BAA::GameScreen());

	return 0;
}
